<?php

if (sizeof($arr_single_citizen)>0){
	$v_username = $arr_single_citizen['C_USERNAME'];
	$v_xml_str = $arr_single_citizen['C_XML_DATA'];
}else{
	$v_username = "";
	$v_xml_str = '<?xml version="1.0" encoding="UTF-8"?><root><data_list></data_list></root>';
}
$v_display_none = "block";
$v_password_optional = false;
$v_username_readonly = "";
if (sizeof($arr_single_citizen)>0){
	$v_display_none = "none";
	$v_password_optional = true;
	$v_username_readonly = "readonly";
}

?>
<table width='100%'  border='0' cellspacing='0' cellpadding='0'>
	<tr>
		<td class='large_title'><?php echo CONST_VERIFY_SECURITY_TITLE ?></td>
	</tr>
</table>		
<form action='index.php' method='post' name='f_dsp_single_verify'>
	<input type='hidden' name='fuseaction' value='DISPLAY_SINGLE_VERIFY'>
	<input type='hidden' name='hdn_question' value=''>
	<input type='hidden' name='hdn_list_xml_tag' value=''>
	<input type='hidden' name='hdn_list_xml_value' value=''>
<table width='100%' class='form_table1'  border='0' cellspacing='0' cellpadding='0'>
	<col width="25%"><col width="75%">
	<tr>
		<td class="normal_label"><?php echo CONST_USERNAME_LABEL;?><small class="small_starmark">*</small></td>
		<td class="normal_label"><input name="txt_username" type="text" value="<?php echo $v_username?>" class="normal_textbox" <?php echo $v_username_readonly?> style="width:80%" maxlength="<?php echo CONST_USERNAME_MAXLENGTH; ?>" message="<?php echo CONST_USERNAME_MESSAGE;?>" optional="<?php echo CONST_USERNAME_OPTIONAL;?>" onKeyDown="change_focus(document.forms(0),this)"></td>
	</tr>
	<tr>
		<td class="normal_label" colspan="4"><?php echo CONST_SECURITY_LABEL;?></td>
	</tr>
	<tr>
		<td class="normal_label"><?php echo CONST_QUESTION_SECURITY_LABEL;?><small class="small_starmark">*</small></td>
		<td class="normal_label" colspan="3">
			<select class="normal_selectbox" name="sel_question" style="width:80%"  message = "<?php echo CONST_QUESTION_SECURITY_MESSAGE; ?>" onChange="document.forms(0).hdn_question.value = this.value">
            <option id="" value="">------&nbsp;&nbsp;<?php echo CONST_QUESTION_SECURITY_SELECTBOX_LABEL;?>&nbsp;&nbsp;------</option>
            <?php echo _generate_select_option($arr_all_question,'C_CODE','C_CODE','C_NAME', $v_question_id);?>
          </select>
		</td>
	</tr>
	<tr>
		<td class="normal_label"><?php echo CONST_ANSWER_SECURITY_LABEL;?><small class="small_starmark">*</small></td>
		<td class="normal_label"><input name="txt_answer" type="text" class="normal_textbox" style="width:80%" message="<?php echo CONST_ANSWER_SECURITY_MESSAGE;?>" onKeyDown="change_focus(document.forms(0),this)"></td>
	</tr>
	<tr><td>&nbsp;</td></tr>
</table>
<table width='100%'  border='0' cellspacing='0' cellpadding='0'>
	<tr height="5pt"><td>&nbsp;</td></tr>
	<tr align="center">
		<td>
			<input type="button" name="btn_save"  class="normal_button" value="<?php echo CONST_CONTINUOUS_BUTTON;?>" onClick="btn_save_onclick('DISPLAY_PASSWORD');" onKeyDown="change_focus(document.forms(0),this)">
			<input type="button" name="btn_back" class="normal_button" value="<?php echo _CONST_BACK_BUTTON;?>" onClick="btn_back_onclick('<?php echo $_GO_BACK?>');" onKeyDown="change_focus(document.forms(0),this)">
		</td>
	</tr>
</table>
<!--//End//Form-->
</form>
<script language="JavaScript">
	set_focus(document.forms(0));
</script>